package model.publics;
// Generated Oct 25, 2012 2:07:57 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * MstSuprincipal generated by hbm2java
 */
@Entity
@Table(name="mst_suprincipal",schema="public")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Suprincipal  implements java.io.Serializable {

     private int id;
     private Supplier supplier;
     private String npwp;
     private String npwpNama;
     private String npwpAlamat;
     private String skp;
     private Date skpDate;
     private Integer leadTime;
     private Integer top;
     private Boolean openTop;
     private Boolean holdPayment;
     private Boolean pkp;
     private String jenisInvoice;
     private String kondisiBarang;
     private String acId;
     private String acNama;
     private String bank;
     private String jadwal;

    public Suprincipal() {
    }
	
    public Suprincipal(int id, Supplier mstSupplier) {
        this.id = id;
        this.supplier = mstSupplier;
    }
       
    @Id
    @GenericGenerator(name = "generator", strategy = "foreign", 
	parameters = @Parameter(name = "property", value = "supplier"))
    @GeneratedValue(generator = "generator")
    @Column(name="id", unique=true, nullable=false)
    public int getId() {
        return this.id;
    }
     
    public void setId(int id) {
        this.id = id;
    }
    
    @OneToOne(fetch=FetchType.LAZY)
    @PrimaryKeyJoinColumn
    public Supplier getSupplier() {
        return this.supplier;
    }
    
    public void setSupplier(Supplier mstSupplier) {
        this.supplier = mstSupplier;
    }
    
    @Column(name="npwp", length=20)
    public String getNpwp() {
        return this.npwp;
    }
    
    public void setNpwp(String npwp) {
        this.npwp = npwp;
    }
    
    @Column(name="npwp_nama", length=100)
    public String getNpwpNama() {
        return this.npwpNama;
    }
    
    public void setNpwpNama(String npwpNama) {
        this.npwpNama = npwpNama;
    }
    
    @Column(name="npwp_alamat", length=250)
    public String getNpwpAlamat() {
        return this.npwpAlamat;
    }
    
    public void setNpwpAlamat(String npwpAlamat) {
        this.npwpAlamat = npwpAlamat;
    }
    
    @Column(name="skp", length=50)
    public String getSkp() {
        return this.skp;
    }
    
    public void setSkp(String skp) {
        this.skp = skp;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="skp_date", length=13)
    public Date getSkpDate() {
        return this.skpDate;
    }
    
    public void setSkpDate(Date skpDate) {
        this.skpDate = skpDate;
    }
    
    @Column(name="lead_time")
    public Integer getLeadTime() {
        return this.leadTime;
    }
    
    public void setLeadTime(Integer leadTime) {
        this.leadTime = leadTime;
    }
    
    @Column(name="top")
    public Integer getTop() {
        return this.top;
    }
    
    public void setTop(Integer top) {
        this.top = top;
    }
    
    @Column(name="open_top")
    public Boolean getOpenTop() {
        return this.openTop;
    }
    
    public void setOpenTop(Boolean openTop) {
        this.openTop = openTop;
    }
    
    @Column(name="hold_payment")
    public Boolean getHoldPayment() {
        return this.holdPayment;
    }
    
    public void setHoldPayment(Boolean holdPayment) {
        this.holdPayment = holdPayment;
    }
    
    @Column(name="pkp")
    public Boolean getPkp() {
        return this.pkp;
    }
    
    public void setPkp(Boolean pkp) {
        this.pkp = pkp;
    }
    
    @Column(name="jenis_invoice", length=1)
    public String getJenisInvoice() {
        return this.jenisInvoice;
    }
    
    public void setJenisInvoice(String jenisInvoice) {
        this.jenisInvoice = jenisInvoice;
    }
    
    @Column(name="kondisi_barang", length=1)
    public String getKondisiBarang() {
        return this.kondisiBarang;
    }
    
    public void setKondisiBarang(String kondisiBarang) {
        this.kondisiBarang = kondisiBarang;
    }
    
    @Column(name="ac_id", length=100)
    public String getAcId() {
        return this.acId;
    }
    
    public void setAcId(String acId) {
        this.acId = acId;
    }
    
    @Column(name="ac_nama", length=100)
    public String getAcNama() {
        return this.acNama;
    }
    
    public void setAcNama(String acNama) {
        this.acNama = acNama;
    }
    
    @Column(name="bank", length=100)
    public String getBank() {
        return this.bank;
    }
    
    public void setBank(String bank) {
        this.bank = bank;
    }
    
    @Column(name="jadwal", length=7)
    public String getJadwal() {
        return this.jadwal;
    }
    
    public void setJadwal(String jadwal) {
        this.jadwal = jadwal;
    }




}


